package com.jic.manager.enums;

public enum CmsPageTypeEnums {
	PLATFORM_HOME_PAGE(1,"平台首页"),
	ARTICLE_PAGE(2,"文章页"),
	PLATFORM_MARKET_PAGE(3,"平台营销页"),
	STORE_HOME_PAGE(4,"店铺首页"),
	STORE_MARKET_PAGE(5,"店铺营销页")
	;

	private Integer type;
	private String desc;
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}

	private CmsPageTypeEnums(Integer type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	public static CmsPageTypeEnums getByName(Integer type){
		CmsPageTypeEnums[] values = CmsPageTypeEnums.values();
		for(CmsPageTypeEnums value : values){
			if(value.getType().equals(type)){
				return value;
			}
		}
		return null;
	}
	
}
